import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import axios from 'axios'
import instance from './lib/http.js'
// 全局引入第三方字体样式文件
import './assets/iconfont/iconfont.css'
import {Button, Card, Cell, CellGroup, Checkbox, CheckboxGroup, Col, Field, Form, Icon, Lazyload, NavBar, NoticeBar, Swipe, SwipeItem, Tag, Toast} from 'vant'

Vue.use(Button).use(Icon).use(Form).use(Field)
.use(NavBar).use(Toast).use(Card).use(Tag).use(NoticeBar)
.use(Swipe).use(SwipeItem).use(Lazyload)
.use(CellGroup).use(Cell).use(Col).use(Checkbox).use(CheckboxGroup)
Vue.config.productionTip = false
Vue.prototype.$http = instance

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
